import React  , { Component } from "react";
import ReactDOM from "react-dom";
import {Router,Route,hashHistory,IndexRoute} from "react-router";
import {Provider} from "react-redux";
// import {createStore,applyMiddleware} from "redux";
// import thunk from "redux-thunk";


import store from "./store/index";

import {App,Home,Jacket,Tshirt,Overcoat,CottonDress,Longs,Jiu,Shorts,News,Others,Carts}  from "./components/";



ReactDOM.render(<Provider store={store}>
       <Router history={hashHistory}>       
            <Route path="/" component={App}>
                    <IndexRoute component={Home}/> 
                    <Router path="/jacket" component={Jacket}/>       
                    <Router path="/Tshirt" component={Tshirt}/>            
                    <Router path="/overcoat" component={Overcoat}/>                         
                    <Router path="/cottonDress" component={CottonDress}/> 
                    <Router path="/longs" component={Longs}/> 
                    <Router path="/jiu" component={Jiu}/> 
                    <Router path="/shorts" component={Shorts}/>                         
                    <Router path="/others" component={Others}/> 
            </Route> 
            <Route  path="/news" component={News}/>     
            <Route  path="/carts" component={Carts}/>     
        </Router>
</Provider> ,document.getElementById("app"));
